using Microsoft.AspNetCore.Mvc;
using Project_Schedule.Domain.BackGround.com.core.Interface;
using Project_Schedule.Domain.Request;

namespace Project_Schedule.Domain.BackGround.com.core.Controller;

[ApiController]
[Route("api/[controller]/[action]")]
public class BackgroundWebUsingController : ControllerBase
{
    private readonly IBackgroundStartUsing _backgroundStartUsing;

    public BackgroundWebUsingController(IBackgroundStartUsing backgroundStartUsing)
    {
        _backgroundStartUsing = backgroundStartUsing;
    }

    [HttpGet]
    public async Task<JRequest> WebUserStartUsing(string account) =>
        await _backgroundStartUsing.WebUserIsUsing(account);
}